package d7_resource;

/**
 * 2024/6/14 认识try-catch-finally Cjj 10:45
 */
public class Test1 {
    public static void main(String[] args) {
        try {
        System.out.println(10/2);
        return;
        }catch (Exception e){
            e.printStackTrace();
        }finally {
            System.out.println("finally==执行了一次");
        }
    }

    public static int chu(int a,int b){
        try {
            return a;
        }catch (Exception e){
            e.printStackTrace();
           return -1;
        }finally {

        }
    }
}
